<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script
      src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-M/dayjs/1.10.8/dayjs.min.js"
      type="application/javascript"
    ></script>
    <script>
      function isOverDate(createDateStr, limitDay) {
        let createDate = new Date(createDateStr)
        return dayjs().isBefore(dayjs(createDate).add(limitDay, 'day')) ? '未过' : '已过'
      }
      let createDateStr = prompt('请您输入您的生日(yyyy-MM-dd):')
      let limitDay = prompt('今天的日期(yyyy-MM-dd): ')
      document.write('')
    </script>
  </body>
</html>
